import yaml

file_path = 'my.yaml'

with open(file_path, 'r', encoding='utf-8') as f:
    data = yaml.safe_load(f)
print(data)
# 读取文件内容
user1_name = data['custom']['user1']['user']
print(user1_name)
